

from selenium import webdriver

class BaseObject:

    def __init__(self,drive):

        self.drive =drive

    def BaseUrl(self,url):

        self.drive.get(url)

    def GetData(self,arg):

        return self.drive.find_element(*arg)

    def SendValue(self,arg,txt):

        self.GetData(arg).send_keys(txt)

    def ClickData(self,arg):

        self.GetData(arg).click()

    def ClearData(self,arg):

        self.GetData(arg).clear()



